package com.yiyi.credit.manage.abutment.mapper;

import com.yiyi.credit.manage.abutment.common.mapper.CommonMapper;
import com.yiyi.credit.manage.abutment.provider.CcxiProvider;
import com.yiyi.credit.manage.abutment.provider.SubProductProvider;
import com.yiyi.credit.manage.model.entity.InterfaceFlow;
import com.yiyi.credit.manage.model.entity.ProjectToThird;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;


public interface CcxiMapper extends CommonMapper<InterfaceFlow> {

    @Select("select * from interface_flow where projectCode = #{projectCode} and requestNo = #{requestNo} ")
    List<InterfaceFlow> selectInterfaceFlowByRequestNo(@Param("projectCode") String projectCode,@Param("requestNo") String requestNo);

    @SelectProvider(type = CcxiProvider.class, method = "selectInterfaceFlowByReqData")
    List<InterfaceFlow> selectInterfaceFlowByReqData(@Param("interfaceType") String interfaceType, @Param("cid") String cid,@Param("name") String name,
                                                     @Param("mobile") String mobile,@Param("card") String card,@Param("type") String type,@Param("key") String key,@Param("cat") String cat,
                                                     @Param("month") String month);
}